import {getToken} from "@/utils/auth";
import defaultSettings from "@/settings";

let $_ = [
  {
    label: '',
    prop: 'img',
    data: {
      key: getToken()
    },
    type: 'upload',
    listType: 'picture-img',
    // listType:'picture-card',
    propsHttp: {
      res: 'datas',
      url: 'url'
    },
    action: defaultSettings.uploadImg,
    rules: [
      {
        required: true,
        message: '请上传',
        trigger: 'blur'
      }
    ]
  },

  {
    label: "",
    prop: "applets_page_id",
    hide:true,
    type: "select",
    dicUrl: `${defaultSettings.baseApi}/applets_page/get_applets_page_list?key=${getToken()}`,
    props: {
      label: 'name',
      value: 'id',
      res: 'datas.data'
    },
    rules: [
      {
        required: true,
        message: '请选择',
        trigger: 'blur'
      }
    ]
  },
]

// :preview-src-list="getImgList(index)"
